

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>CallDetail List</title>
    </head>
    <body>
        <g:render template="/menu" />
        <div class="body">
            <h1>CallDetail List</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                   	        <g:sortableColumn property="id" title="Id" />
                        
                   	        <g:sortableColumn property="callBack" title="Call Back" />
                        
                   	        <g:sortableColumn property="callBackTime" title="Call Back Time" />
                        
                   	        <g:sortableColumn property="details" title="Details" />
                        
                   	        <g:sortableColumn property="duration" title="Duration" />
                        
                   	        <g:sortableColumn property="name" title="Name" />

                   	        <g:sortableColumn property="id" title="Image" />
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${callDetailInstanceList}" status="i" var="callDetailInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${callDetailInstance.id}">${fieldValue(bean:callDetailInstance, field:'id')}</g:link></td>
                        
                            <td>${fieldValue(bean:callDetailInstance, field:'callBack')}</td>
                        
                            <td>${fieldValue(bean:callDetailInstance, field:'callBackTime')}</td>
                        
                            <td>${fieldValue(bean:callDetailInstance, field:'details')}</td>
                        
                            <td>${fieldValue(bean:callDetailInstance, field:'duration')}</td>
                        
                            <td>${fieldValue(bean:callDetailInstance, field:'name')}</td>

                            <td><img alt="user thumbnail" height="50" width="50" src="${createLink(controller:'user', action:'avatar_image', id:callDetailInstance.user?.id)}"/></td>

                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${callDetailInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
